package cn.csc.module.shop.controller.admin.businessdic.vo;

import cn.csc.framework.common.pojo.PageParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

import static cn.csc.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel("管理后台 - 企业经营范围字典数据分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ShopBusinessDicPageReqVO extends PageParam {

    @ApiModelProperty(value = "级别")
    private Integer level;

    @ApiModelProperty(value = "父id")
    private Integer pid;

    @ApiModelProperty(value = "类目名称")
    private String name;

    @ApiModelProperty(value = "排序")
    private Byte sort;

    @ApiModelProperty(value = "类目图片")
    private String pic;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Date[] createTime;

}
